package com.agui.log4jDemo;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.IOException;

/**
 * @author ygp
 * @create 2021-12-23 20:24
 */
public class TTest {
    private static Logger logger = LogManager.getLogger("TTest");

    //单独调用计算器的程序类
    public static void main(String[] args)  {
        try {
            logger.info("your operation system is: {}", "${java:os}");
            Runtime.getRuntime().exec("calc");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
